//
//  WebTool.m
//  Work
//
//  Created by 任文义 on 15/12/15.
//  Copyright (c) 2015年 work. All rights reserved.
//

#import "WebTool.h"
#import <UIKit/UIKit.h>
@implementation WebTool
+ (UIWebView *)webViewCreatWithString:(NSString *)urls WithIsScrollEnable:(BOOL)enable{
    UIWebView *webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    NSURL *url = [[NSURL alloc] initWithString:urls];
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
    webView.scrollView.showsVerticalScrollIndicator = NO;
    webView.scalesPageToFit = YES;
//    webView.delegate = self;
    webView.scrollView.scrollEnabled = enable;
    [webView loadRequest:request];
//    [self addSubview:webView];
    return webView;
}
@end
